package com.pactera.asmp.server.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TCanInfoExample {
    public static final String DEVICE_INDEX = "deviceIndex";
    public static final String CHANNEL_INDEX = "channelIndex";
    public static final String STATE = "state";
    public static final String BAUD_RATE = "baudRate";
    public static final String PASSAGE = "passage";
    public static final String CREATE_TIME = "createTime";
    public static final String LAST_ONLINE_TIME = "lastOnlineTime";
    public static final String LAST_OFFLINE_TIME = "lastOfflineTime";
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TCanInfoExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.isEmpty()) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        return new Criteria();
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCuidIsNull() {
            addCriterion("cuid is null");
            return (Criteria) this;
        }

        public Criteria andCuidIsNotNull() {
            addCriterion("cuid is not null");
            return (Criteria) this;
        }

        public Criteria andCuidEqualTo(String value) {
            addCriterion("cuid =", value, "cuid");
            return (Criteria) this;
        }

        public Criteria andCuidNotEqualTo(String value) {
            addCriterion("cuid <>", value, "cuid");
            return (Criteria) this;
        }

        public Criteria andCuidGreaterThan(String value) {
            addCriterion("cuid >", value, "cuid");
            return (Criteria) this;
        }

        public Criteria andCuidGreaterThanOrEqualTo(String value) {
            addCriterion("cuid >=", value, "cuid");
            return (Criteria) this;
        }

        public Criteria andCuidLessThan(String value) {
            addCriterion("cuid <", value, "cuid");
            return (Criteria) this;
        }

        public Criteria andCuidLessThanOrEqualTo(String value) {
            addCriterion("cuid <=", value, "cuid");
            return (Criteria) this;
        }

        public Criteria andCuidLike(String value) {
            addCriterion("cuid like", value, "cuid");
            return (Criteria) this;
        }

        public Criteria andCuidNotLike(String value) {
            addCriterion("cuid not like", value, "cuid");
            return (Criteria) this;
        }

        public Criteria andCuidIn(List<String> values) {
            addCriterion("cuid in", values, "cuid");
            return (Criteria) this;
        }

        public Criteria andCuidNotIn(List<String> values) {
            addCriterion("cuid not in", values, "cuid");
            return (Criteria) this;
        }

        public Criteria andCuidBetween(String value1, String value2) {
            addCriterion("cuid between", value1, value2, "cuid");
            return (Criteria) this;
        }

        public Criteria andCuidNotBetween(String value1, String value2) {
            addCriterion("cuid not between", value1, value2, "cuid");
            return (Criteria) this;
        }

        public Criteria andDuidIsNull() {
            addCriterion("duid is null");
            return (Criteria) this;
        }

        public Criteria andDuidIsNotNull() {
            addCriterion("duid is not null");
            return (Criteria) this;
        }

        public Criteria andDuidEqualTo(String value) {
            addCriterion("duid =", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidNotEqualTo(String value) {
            addCriterion("duid <>", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidGreaterThan(String value) {
            addCriterion("duid >", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidGreaterThanOrEqualTo(String value) {
            addCriterion("duid >=", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidLessThan(String value) {
            addCriterion("duid <", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidLessThanOrEqualTo(String value) {
            addCriterion("duid <=", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidLike(String value) {
            addCriterion("duid like", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidNotLike(String value) {
            addCriterion("duid not like", value, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidIn(List<String> values) {
            addCriterion("duid in", values, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidNotIn(List<String> values) {
            addCriterion("duid not in", values, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidBetween(String value1, String value2) {
            addCriterion("duid between", value1, value2, "duid");
            return (Criteria) this;
        }

        public Criteria andDuidNotBetween(String value1, String value2) {
            addCriterion("duid not between", value1, value2, "duid");
            return (Criteria) this;
        }

        public Criteria andDeviceIndexIsNull() {
            addCriterion("device_index is null");
            return (Criteria) this;
        }

        public Criteria andDeviceIndexIsNotNull() {
            addCriterion("device_index is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceIndexEqualTo(Integer value) {
            addCriterion("device_index =", value, DEVICE_INDEX);
            return (Criteria) this;
        }

        public Criteria andDeviceIndexNotEqualTo(Integer value) {
            addCriterion("device_index <>", value, DEVICE_INDEX);
            return (Criteria) this;
        }

        public Criteria andDeviceIndexGreaterThan(Integer value) {
            addCriterion("device_index >", value, DEVICE_INDEX);
            return (Criteria) this;
        }

        public Criteria andDeviceIndexGreaterThanOrEqualTo(Integer value) {
            addCriterion("device_index >=", value, DEVICE_INDEX);
            return (Criteria) this;
        }

        public Criteria andDeviceIndexLessThan(Integer value) {
            addCriterion("device_index <", value, DEVICE_INDEX);
            return (Criteria) this;
        }

        public Criteria andDeviceIndexLessThanOrEqualTo(Integer value) {
            addCriterion("device_index <=", value, DEVICE_INDEX);
            return (Criteria) this;
        }

        public Criteria andDeviceIndexIn(List<Integer> values) {
            addCriterion("device_index in", values, DEVICE_INDEX);
            return (Criteria) this;
        }

        public Criteria andDeviceIndexNotIn(List<Integer> values) {
            addCriterion("device_index not in", values, DEVICE_INDEX);
            return (Criteria) this;
        }

        public Criteria andDeviceIndexBetween(Integer value1, Integer value2) {
            addCriterion("device_index between", value1, value2, DEVICE_INDEX);
            return (Criteria) this;
        }

        public Criteria andDeviceIndexNotBetween(Integer value1, Integer value2) {
            addCriterion("device_index not between", value1, value2, DEVICE_INDEX);
            return (Criteria) this;
        }

        public Criteria andChannelIndexIsNull() {
            addCriterion("channel_index is null");
            return (Criteria) this;
        }

        public Criteria andChannelIndexIsNotNull() {
            addCriterion("channel_index is not null");
            return (Criteria) this;
        }

        public Criteria andChannelIndexEqualTo(Integer value) {
            addCriterion("channel_index =", value, CHANNEL_INDEX);
            return (Criteria) this;
        }

        public Criteria andChannelIndexNotEqualTo(Integer value) {
            addCriterion("channel_index <>", value, CHANNEL_INDEX);
            return (Criteria) this;
        }

        public Criteria andChannelIndexGreaterThan(Integer value) {
            addCriterion("channel_index >", value, CHANNEL_INDEX);
            return (Criteria) this;
        }

        public Criteria andChannelIndexGreaterThanOrEqualTo(Integer value) {
            addCriterion("channel_index >=", value, CHANNEL_INDEX);
            return (Criteria) this;
        }

        public Criteria andChannelIndexLessThan(Integer value) {
            addCriterion("channel_index <", value, CHANNEL_INDEX);
            return (Criteria) this;
        }

        public Criteria andChannelIndexLessThanOrEqualTo(Integer value) {
            addCriterion("channel_index <=", value, CHANNEL_INDEX);
            return (Criteria) this;
        }

        public Criteria andChannelIndexIn(List<Integer> values) {
            addCriterion("channel_index in", values, CHANNEL_INDEX);
            return (Criteria) this;
        }

        public Criteria andChannelIndexNotIn(List<Integer> values) {
            addCriterion("channel_index not in", values, CHANNEL_INDEX);
            return (Criteria) this;
        }

        public Criteria andChannelIndexBetween(Integer value1, Integer value2) {
            addCriterion("channel_index between", value1, value2, CHANNEL_INDEX);
            return (Criteria) this;
        }

        public Criteria andChannelIndexNotBetween(Integer value1, Integer value2) {
            addCriterion("channel_index not between", value1, value2, CHANNEL_INDEX);
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Byte value) {
            addCriterion("state =", value, STATE);
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Byte value) {
            addCriterion("state <>", value, STATE);
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Byte value) {
            addCriterion("state >", value, STATE);
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("state >=", value, STATE);
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Byte value) {
            addCriterion("state <", value, STATE);
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Byte value) {
            addCriterion("state <=", value, STATE);
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Byte> values) {
            addCriterion("state in", values, STATE);
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Byte> values) {
            addCriterion("state not in", values, STATE);
            return (Criteria) this;
        }

        public Criteria andStateBetween(Byte value1, Byte value2) {
            addCriterion("state between", value1, value2, STATE);
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Byte value1, Byte value2) {
            addCriterion("state not between", value1, value2, STATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateIsNull() {
            addCriterion("baud_rate is null");
            return (Criteria) this;
        }

        public Criteria andBaudRateIsNotNull() {
            addCriterion("baud_rate is not null");
            return (Criteria) this;
        }

        public Criteria andBaudRateEqualTo(String value) {
            addCriterion("baud_rate =", value, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateNotEqualTo(String value) {
            addCriterion("baud_rate <>", value, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateGreaterThan(String value) {
            addCriterion("baud_rate >", value, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateGreaterThanOrEqualTo(String value) {
            addCriterion("baud_rate >=", value, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateLessThan(String value) {
            addCriterion("baud_rate <", value, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateLessThanOrEqualTo(String value) {
            addCriterion("baud_rate <=", value, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateLike(String value) {
            addCriterion("baud_rate like", value, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateNotLike(String value) {
            addCriterion("baud_rate not like", value, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateIn(List<String> values) {
            addCriterion("baud_rate in", values, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateNotIn(List<String> values) {
            addCriterion("baud_rate not in", values, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateBetween(String value1, String value2) {
            addCriterion("baud_rate between", value1, value2, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andBaudRateNotBetween(String value1, String value2) {
            addCriterion("baud_rate not between", value1, value2, BAUD_RATE);
            return (Criteria) this;
        }

        public Criteria andPassageIsNull() {
            addCriterion("passage is null");
            return (Criteria) this;
        }

        public Criteria andPassageIsNotNull() {
            addCriterion("passage is not null");
            return (Criteria) this;
        }

        public Criteria andPassageEqualTo(Integer value) {
            addCriterion("passage =", value, PASSAGE);
            return (Criteria) this;
        }

        public Criteria andPassageNotEqualTo(Integer value) {
            addCriterion("passage <>", value, PASSAGE);
            return (Criteria) this;
        }

        public Criteria andPassageGreaterThan(Integer value) {
            addCriterion("passage >", value, PASSAGE);
            return (Criteria) this;
        }

        public Criteria andPassageGreaterThanOrEqualTo(Integer value) {
            addCriterion("passage >=", value, PASSAGE);
            return (Criteria) this;
        }

        public Criteria andPassageLessThan(Integer value) {
            addCriterion("passage <", value, PASSAGE);
            return (Criteria) this;
        }

        public Criteria andPassageLessThanOrEqualTo(Integer value) {
            addCriterion("passage <=", value, PASSAGE);
            return (Criteria) this;
        }

        public Criteria andPassageIn(List<Integer> values) {
            addCriterion("passage in", values, PASSAGE);
            return (Criteria) this;
        }

        public Criteria andPassageNotIn(List<Integer> values) {
            addCriterion("passage not in", values, PASSAGE);
            return (Criteria) this;
        }

        public Criteria andPassageBetween(Integer value1, Integer value2) {
            addCriterion("passage between", value1, value2, PASSAGE);
            return (Criteria) this;
        }

        public Criteria andPassageNotBetween(Integer value1, Integer value2) {
            addCriterion("passage not between", value1, value2, PASSAGE);
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, CREATE_TIME);
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, CREATE_TIME);
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, CREATE_TIME);
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, CREATE_TIME);
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, CREATE_TIME);
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, CREATE_TIME);
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, CREATE_TIME);
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, CREATE_TIME);
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, CREATE_TIME);
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, CREATE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeIsNull() {
            addCriterion("last_online_time is null");
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeIsNotNull() {
            addCriterion("last_online_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeEqualTo(Date value) {
            addCriterion("last_online_time =", value, LAST_ONLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeNotEqualTo(Date value) {
            addCriterion("last_online_time <>", value, LAST_ONLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeGreaterThan(Date value) {
            addCriterion("last_online_time >", value, LAST_ONLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("last_online_time >=", value, LAST_ONLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeLessThan(Date value) {
            addCriterion("last_online_time <", value, LAST_ONLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeLessThanOrEqualTo(Date value) {
            addCriterion("last_online_time <=", value, LAST_ONLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeIn(List<Date> values) {
            addCriterion("last_online_time in", values, LAST_ONLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeNotIn(List<Date> values) {
            addCriterion("last_online_time not in", values, LAST_ONLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeBetween(Date value1, Date value2) {
            addCriterion("last_online_time between", value1, value2, LAST_ONLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOnlineTimeNotBetween(Date value1, Date value2) {
            addCriterion("last_online_time not between", value1, value2, LAST_ONLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeIsNull() {
            addCriterion("last_offline_time is null");
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeIsNotNull() {
            addCriterion("last_offline_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeEqualTo(Date value) {
            addCriterion("last_offline_time =", value, LAST_OFFLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeNotEqualTo(Date value) {
            addCriterion("last_offline_time <>", value, LAST_OFFLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeGreaterThan(Date value) {
            addCriterion("last_offline_time >", value, LAST_OFFLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("last_offline_time >=", value, LAST_OFFLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeLessThan(Date value) {
            addCriterion("last_offline_time <", value, LAST_OFFLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeLessThanOrEqualTo(Date value) {
            addCriterion("last_offline_time <=", value, LAST_OFFLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeIn(List<Date> values) {
            addCriterion("last_offline_time in", values, LAST_OFFLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeNotIn(List<Date> values) {
            addCriterion("last_offline_time not in", values, LAST_OFFLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeBetween(Date value1, Date value2) {
            addCriterion("last_offline_time between", value1, value2, LAST_OFFLINE_TIME);
            return (Criteria) this;
        }

        public Criteria andLastOfflineTimeNotBetween(Date value1, Date value2) {
            addCriterion("last_offline_time not between", value1, value2, LAST_OFFLINE_TIME);
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}